import request from '@/utils/request1'
// app开屏活动查询列表
export function getList(query) {
    return request({
        url: 'admin/screen/screen_list',
        method: 'post',
        data: query
    })
}
// 上下架
export function isOn(query) {
    return request({
        url: 'admin/screen/screen_onsale',
        method: 'post',
        data: query
    })
}
// 删除
export function deleteList(query) {
    return request({
        url: 'admin/screen/screen_del',
        method: 'post',
        data: query
    })
}
// 获取跳转类型里面的下拉数据
export function selectList(query) {
    return request({
        url: 'admin/screen/type_data',
        method: 'post',
        data: query
    })
}
// 添加首屏广告
export function add(query) {
    return request({
        url: 'admin/screen/screen_add',
        method: 'post',
        data: query
    })
}
// 首屏广告详情
export function details(query) {
    return request({
        url: 'admin/screen/screen_show',
        method: 'post',
        data: query
    })
}
// 编辑首屏广告
export function edit(query) {
    return request({
        url: 'admin/screen/screen_edit',
        method: 'post',
        data: query
    })
}
// 获取所有类型
export function allType(query) {
    return request({
        url: 'admin/screen/get_type_list',
        method: 'post',
        data: query
    })
}
// 邀请有礼活动下拉数据type26
export function invitedList(query) {
    return request({
        url: 'admin/ma/invate_list',
        method: 'get',
        params: query
    })
}